package com.tide.crm.controller;

import javax.annotation.Resource;

import com.tide.crm.service.WeChatService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import io.swagger.annotations.ApiOperation;
@RestController
@RequestMapping("/weChat")
public class WeChatController {

	
	@Resource(name="weChatService")
	private WeChatService weChatService;
	
	
	@PostMapping
    @ApiOperation(value = "testToken")
    public void testToken() {
		try {
			weChatService.saveWeChatAccessToken();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
	
}
